<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>招聘管理系统</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css" rel="stylesheet">
    <style>
        .stat-card {
            transition: transform 0.2s;
            border: none;
            border-radius: 1rem;
        }
        .stat-card:hover {
            transform: translateY(-5px);
        }
        .stat-icon {
            font-size: 2.5rem;
            opacity: 0.8;
        }
        .quick-link {
            text-decoration: none;
            color: inherit;
        }
        .quick-link:hover {
            color: inherit;
        }
    </style>
</head>
<body>
    <div th:replace="common/header :: header"></div>

    <div class="container mt-5">
        <!-- 欢迎信息 -->
        <div class="text-center mb-5">
            <h2 class="display-4">欢迎使用招聘管理系统</h2>
            <p class="lead text-muted">高效管理您的招聘流程</p>
        </div>

        <!-- 数据统计卡片 -->
        <div class="row g-4 mb-5">
            <div class="col-md-3">
                <div class="card stat-card bg-primary text-white shadow">
                    <div class="card-body">
                        <div class="d-flex justify-content-between align-items-center">
                            <div>
                                <h6 class="card-title">招聘中职位</h6>
                                <h2 class="mb-0" th:text="${openJobs}">0</h2>
                            </div>
                            <i class="bi bi-briefcase stat-icon"></i>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-3">
                <div class="card stat-card bg-success text-white shadow">
                    <div class="card-body">
                        <div class="d-flex justify-content-between align-items-center">
                            <div>
                                <h6 class="card-title">待处理简历</h6>
                                <h2 class="mb-0" th:text="${pendingResumes}">0</h2>
                            </div>
                            <i class="bi bi-file-earmark-text stat-icon"></i>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-3">
                <div class="card stat-card bg-info text-white shadow">
                    <div class="card-body">
                        <div class="d-flex justify-content-between align-items-center">
                            <div>
                                <h6 class="card-title">今日面试</h6>
                                <h2 class="mb-0" th:text="${todayInterviews}">0</h2>
                            </div>
                            <i class="bi bi-calendar-check stat-icon"></i>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-3">
                <div class="card stat-card bg-warning text-white shadow">
                    <div class="card-body">
                        <div class="d-flex justify-content-between align-items-center">
                            <div>
                                <h6 class="card-title">本月终试通过</h6>
                                <h2 class="mb-0" th:text="${monthlyHires}">0</h2>
                            </div>
                            <i class="bi bi-people stat-icon"></i>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 快捷入口 -->
        <div class="row g-4">
            <div class="col-md-4">
                <a href="/job/add" class="quick-link">
                    <div class="card h-100 shadow-sm hover-shadow">
                        <div class="card-body text-center">
                            <i class="bi bi-plus-circle text-primary" style="font-size: 3rem;"></i>
                            <h5 class="card-title mt-3">发布新职位</h5>
                            <p class="card-text text-muted">快速创建新的职位需求</p>
                        </div>
                    </div>
                </a>
            </div>
            <div class="col-md-4">
                <a href="/resume/list" class="quick-link">
                    <div class="card h-100 shadow-sm hover-shadow">
                        <div class="card-body text-center">
                            <i class="bi bi-file-earmark-text text-success" style="font-size: 3rem;"></i>
                            <h5 class="card-title mt-3">查看简历</h5>
                            <p class="card-text text-muted">浏览和处理收到的简历</p>
                        </div>
                    </div>
                </a>
            </div>
            <div class="col-md-4">
                <a href="/interview/list" class="quick-link">
                    <div class="card h-100 shadow-sm hover-shadow">
                        <div class="card-body text-center">
                            <i class="bi bi-calendar-plus text-info" style="font-size: 3rem;"></i>
                            <h5 class="card-title mt-3">安排面试</h5>
                            <p class="card-text text-muted">为候选人安排面试时间</p>
                        </div>
                    </div>
                </a>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html> 